// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '维修单',
        name: 'RepairForm',
        url: "/RepairForm/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"RepairCode":"","RepairName":"","EquipmentCode":"","RepairDate":"","FinshDate":"","CheckDate":"","RepairResult":"","Repairer":"","CheckMan":"","Descs":""};
    const editFormOptions = [[{"title":"维修单编号","required":true,"field":"RepairCode"}],
                              [{"title":"维修单名称","required":true,"field":"RepairName"}],
                              [{"title":"设备编码","required":true,"field":"EquipmentCode"}],
                              [{"title":"维修日期","required":true,"field":"RepairDate","type":"date"}],
                              [{"title":"完成日期","required":true,"field":"FinshDate","type":"date"}],
                              [{"title":"检查日期","required":true,"field":"CheckDate","type":"date"}],
                              [{"title":"维修结果","required":true,"field":"RepairResult"}],
                              [{"title":"维修人","required":true,"field":"Repairer"}],
                              [{"title":"检查人","required":true,"field":"CheckMan"}],
                              [{"title":"备注","required":true,"field":"Descs"}]];
    const searchFormFields = {"Id":"","RepairCode":"","RepairName":"","EquipmentCode":"","RepairResult":""};
    const searchFormOptions = [[{"title":"主键","field":"Id","type":"number"},{"title":"维修单编号","field":"RepairCode","type":"like"},{"title":"维修单名称","field":"RepairName","type":"like"}],[{"title":"设备编码","field":"EquipmentCode","type":"like"},{"title":"维修结果","field":"RepairResult","type":"like"}]];
    const columns = [{field:'Id',title:'主键',type:'int',width:110,require:true,align:'left'},
                       {field:'RepairCode',title:'维修单编号',type:'string',width:110,require:true,align:'left'},
                       {field:'RepairName',title:'维修单名称',type:'string',width:110,require:true,align:'left'},
                       {field:'EquipmentCode',title:'设备编码',type:'string',width:110,require:true,align:'left'},
                       {field:'RepairDate',title:'维修日期',type:'date',width:110,require:true,align:'left'},
                       {field:'FinshDate',title:'完成日期',type:'date',width:110,require:true,align:'left'},
                       {field:'CheckDate',title:'检查日期',type:'date',width:110,require:true,align:'left'},
                       {field:'RepairResult',title:'维修结果',type:'string',width:110,require:true,align:'left'},
                       {field:'Repairer',title:'维修人',type:'string',width:110,require:true,align:'left'},
                       {field:'CheckMan',title:'检查人',type:'string',width:110,require:true,align:'left'},
                       {field:'Descs',title:'备注',type:'string',width:220,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}